﻿(function (wtm) {
    $('body').on('click', '.print-btn', function () {
        $(this).parent().print({
            globalStyles: true,
            mediaPrint: false,
            stylesheet: null,
            noPrintSelector: ".no-print",
            iframe: true,
            append: null,
            prepend: null,
            manuallyCopyFormValues: true,
            deferred: $.Deferred()
        });
    });

    wtm.print_Render = function (el) {
        $(el).parent().css('max-height', (window.innerHeight - 120) + 'px').css('overflow-y', 'auto');
    };
})(wtm);